import React, {Component} from "react"
import { Checkbox } from "antd"

class Test extends Component {
  constructor(props) {
    super(props);
    this.state = {
      checked: false,
    };
  }

  render(){
    return <Checkbox checked={this.state.checked} onChange={(e)=>{
      const { checked } = e.target 
      this.setState({ checked })
    }}/>
  }
}


export default Test



